<style>
#filterForm{
	max-width:700px;
}
#filterForm ul.letter_filter li{
	margin-bottom:5px;
}
#newDelForm label,
#editDelatnostForm label,
#delatnostiAdmin label{
	display:block;
	float:left;
	text-align:right;
	padding-top:8px;
}
#delatnostiAdmin .info{
	color:#777;
	font-size:11px;
	float:right;
	padding:10px 5px 5px 0px;
}
#editDelatnostForm textarea{
	width:250px;
	height:30px;
}
#delatnostiAdmin #delatnostiAdminPregled{
	width:700px;
	margin-top:-1px;
}
#delatnostiAdmin #delatnostiAdminPregled table{
	clear:both;
}
#delatnostiAdmin #delatnostiAdminPregled table tr.head:hover,
#delatnostiAdmin #delatnostiAdminPregled table tr.head{
	font-weight:bolder;
	color:#fff;
	background:#2577BA;
}
#delatnostiAdmin #delatnostiAdminPregled table tr:hover{
	color:#fff;
	background:#2577BA;
}
#delatnostiAdmin #delatnostiAdminPregled table tr td{
	border-right:1px solid #aaa;
	border-bottom:1px solid #aaa;
	padding:3px 5px;
}
#delatnostiAdmin #delatnostiAdminPregled input[type=button]{
	width:20px;
	height:20px;
	background-position:center center;
	background-repeat:no-repeat;
	margin:0px 0px 0px 0px;
	float:none;
	cursor:pointer;
}
#delatnostiAdmin #delatnostiAdminPregled input[type=button].e{
	background-image:url(gui/icons/edit.gif);
}
#delatnostiAdmin #delatnostiAdminPregled input[type=button].d{
	background-image:url(gui/icons/delete.gif);
}
#editDelatnostForm{
	width:345px;
}
#editDelatnostForm input[type=submit]{
	float:right;
	clear:both;
	background-image:url(gui/icons/save.gif);
	background-position:3px center;
	background-repeat:no-repeat;
	padding-left:16px;
}
#editDelatnostForm input[type=reset]{
	float:right;
	background-image:url(gui/icons/cancel.gif);
	background-position:3px center;
	background-repeat:no-repeat;
	padding-left:16px;
}
#delatnostiAdmin input[type=button]#newDel{
	width:auto;
	height:auto;
	margin:0px 0px 5px 0px;
	float:left;
	background-image:url(gui/icons/new.gif);
	background-position:3px center;
	background-repeat:no-repeat;
	padding-left:14px;
}
#newDelForm{
	width:230px;
}
#newDelForm label{
	width:65px;
}
#newDelForm input[type=submit]{
	background-image:url(gui/icons/save.gif);
	background-repeat:no-repeat;
	background-position:3px center;
	padding-left:16px;
	float:right;
}
</style>
<div id="delatnostiAdmin">
	<form method="post" action="javascript:void(0)" onsubmit="filterAdminDelatnosti(this)" id="filterForm" class="area">
		<label for="kategorija">Kategorija:</label>
		<select name="kategorija" id="kategorija">
			<option value="-1">---</option>
			{{%loop start katid}}
			<option value="{{$katid}}" {{$selected_kat}}>{{$kat}}</option>
			{{%loop end}}
		</select>
		<label for="delatnost">Delatnost:</label><input onchange="this.value=this.value.replace(/^\s+|\s+$/,''); this.value=this.value.replace(/\s{2,}/,' ')" type="text" name="delatnost" id="delatnost" value="{{$filter_delatnost}}" />
		<input type="submit" value="prikaži" />
		<br clear="all" />
		<ul class="letter_filter" kat="{{$filter_kategorija}}" del="{{$filter_delatnost}}">
			{{%loop start page}}
			<li><a id="{{$current_page}}" href="javascript:void(0)" onclick="filterDelatnosti('{{$page}}',this)">{{$page}}</a></li>
			{{%loop end}}
		</ul>
	</form>
	<br clear="all" />
	<div class="area" id="delatnostiAdminPregled">
		<input type="button" onclick="showAddDelatnost()" value="Nova delatnost" id="newDel" />
		<div class="info">&nbsp;{{$count}}&nbsp;delatnosti</div>
		{{$start_comment}}
		<table cellspacing="1" width="100%">
			<tr class="head">
				<td width="5%" align="center">šifra</td>
				<td width="26%">naziv <img src="gui/srb.gif" alt="srpski" title="srpski" align="absmiddle" style="border:1px solid #fff;" /></td>
				<td width="24%">naziv <img src="gui/eng.gif" alt="engleski" title="engleski" align="absmiddle" style="border:1px solid #fff;" /></td>
				<td width="25%">kategorija</td>
				<td>&nbsp;</td>
			</tr>
			{{%loop start delid}}
			<tr>
				<td align="center">{{$delid}}</td>
				<td>{{$del}}</td>
				<td>{{$del_eng}}</td>
				<td>{{$kat_name}}</td>
				<td align="center">
					<input type="hidden" value="{{$del_katid}}" />
					<input type="button" onclick="editDel(this)" value="" title="Izmeni" class="e" />
					<input type="button" onclick="deleteDel(this)" value="" title="Obriši" class="d" />
				</td>
			</tr>
			{{%loop end}}
		</table>
		{{$end_comment}}
	</div>
</div>